<?php
//404错误处理
$container['notFoundHandler'] = function($c) {
	return function($request, $response) use ($c) {
		return $response->withRedirect($c->router->pathFor('404'));
	};
};

//500错误处理
//$container['errorHandler'] = function($c) {
//	return function($request, $response, $exception) use ($c) {
//		return $c['response'] -> withStatus(500) -> withHeader('Content-Type', 'text/html') -> write('Something went wrong!');
//	};
//};

//405
